package com.tomvian.twodee.common.interactions 
{
	import com.tomvian.twodee.common.Actor;
	import com.tomvian.maths.Vector2D;
	import sfb.physics.Mass;
	/**
	 * InteractionNode
	 * @author Thomas Vian
	 */
	public class InteractionNode
	{
		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------
		
		public var enabled:Boolean = true;
		
		public var actor:Actor;
		
		public var actorMass:Mass;
		public var position:Vector2D;
		public var velocity:Vector2D;
		
		public var interactionPoint:Vector2D;
		
		public var interacting:Boolean;
		
		public var next:InteractionNode;
		public var prev:InteractionNode;
		
		//--------------------------------------------------------------------------
		//
		//  Getters / Setters
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  Constructor
		//
		//--------------------------------------------------------------------------
		
		public function InteractionNode(actor:Actor = null) 
		{
			this.actor = actor;
			
			actorMass = actor.mass;
			position = actorMass.position;
			velocity = actorMass.velocity;
		}
		
		//--------------------------------------------------------------------------
		//
		//  Methods
		//
		//--------------------------------------------------------------------------
		
	}
}